package com.risk.task.hall.client.feign;

import com.risk.login.dto.LoginUserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Desc
 * @Date 2018/5/24:下午11:14
 * @uthor yzMa
 * @email 2641007740@qq.com
 */
@FeignClient(serviceId = "risk-login") //login 的spring.application.name
public interface UserService {

    /**
     *
     * @param uid
     * @return
     */
    @RequestMapping("/login/get/{uid}") //login 的一个controller地址
    ResponseEntity<LoginUserDto> getUserInfo(@PathVariable("uid") String uid);

}
